package com.qf.job;

import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.stereotype.Component;

@Component
public class HelloJob {

    //job
    @XxlJob("printhello")
    public void printHello(){

        //获取任务参数
        String jobParam = XxlJobHelper.getJobParam();

        System.out.println("jobParam = " + jobParam);

        System.out.println("hello....");
    }
}
